<template>
  <div class="right-box">
    <h2>Right组件</h2>
     <h3>{{$store.state.count}}</h3>
     <button @click="addThree">异步的+3</button>
  </div>
</template>

<script>
export default {
    methods:{
        addThree(){
           console.log('store',this.$store);
           this.$store.dispatch("incrementAsync",3)
        }
    }
}
</script>

<style lang="scss" scoped>
    .right-box{
        flex-grow: 1;
        height: 100vh;
        background: springgreen;
    }
</style>